package com.jmu.bishe.entity;

import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * ReqSellRentInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "REQ_SELL_RENT_INFO", schema = "HUANG")
public class ReqSellRentInfo implements java.io.Serializable {

	private static final long serialVersionUID = 2193084690145940151L;
	private String rsid;
	private String content;
	private BigDecimal flag;
	private Date recordDate;
	private String title;
	private String userId;

	// Constructors

	/** default constructor */
	public ReqSellRentInfo() {
	}

	/** minimal constructor */
	public ReqSellRentInfo(String rsid) {
		this.rsid = rsid;
	}

	/** full constructor */
	public ReqSellRentInfo(String rsid, String content, BigDecimal flag,
			Date recordDate, String title, String userId) {
		this.rsid = rsid;
		this.content = content;
		this.flag = flag;
		this.recordDate = recordDate;
		this.title = title;
		this.userId = userId;
	}

	// Property accessors
	@Id
	@Column(name = "RSID", unique = true, nullable = false, length = 20)
	public String getRsid() {
		return this.rsid;
	}

	public void setRsid(String rsid) {
		this.rsid = rsid;
	}

	@Column(name = "CONTENT", length = 256)
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "FLAG", precision = 22, scale = 0)
	public BigDecimal getFlag() {
		return this.flag;
	}

	public void setFlag(BigDecimal flag) {
		this.flag = flag;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "RECORD_DATE", length = 7)
	public Date getRecordDate() {
		return this.recordDate;
	}

	public void setRecordDate(Date recordDate) {
		this.recordDate = recordDate;
	}

	@Column(name = "TITLE", length = 50)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "USER_ID", length = 20)
	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

}